/*
* Copyright (C) 2020 ~ 2024 chaigec All Rights Reserved.
*
* Author:     chaigec <chaigec@163.com>
* Maintainer: chaigec <chaigec@163.com>

 * Use of this source code is governed by MIT license that can be found in the
 * LICENSE file in the root of the source tree. All contributing project authors
 * may be found in the AUTHORS file in the root of the source tree.
*/

//sip tcp session
#ifndef MK_SIP_TCP_SESSION_H
#define MK_SIP_TCP_SESSION_H
#include "MkTcp/MkTcpSession.h"

class MkApi CMkSipTcpSession : public CMkTcpSession
{
public:
    CMkSipTcpSession(CMkEvent* pEvent, CMkTimer* pTimer, CMkTcpServer* pServer);
    virtual ~CMkSipTcpSession();
protected:
private:
    Uint32 OnRecv() override;
private:
    Uint32                  m_MaxRecvLen;
    Uint32                  m_nOffsetLen;
    Uint8*                  m_pRecvBuffer;
};

#endif